/**
 * *****************************************************************************
 * @file    common.h
 * @author  Home(zhhuang@andartechs.com.cn)
 * @version 1.4.0
 * @date    2021-11-05
 * @brief   
 * 
 *                 Copyright (c) 2021, Andar Technologies Inc.
 *                           www.andartechs.com
 * 
 * *****************************************************************************
 */
#ifndef __DAT3102_COMMON_H
#define __DAT3102_COMMON_H
#include "adt3102_type_define.h"
#include "adt3102_system.h"


/*--------------------------------- define -----------------------------------*/
#define C_LOST_THD          10
#define DOPMIN              1
#define FIRSTPEAKONLY       0
#define DISTCOMP            0

#define PRJ_HUMAN_DETECTION_ID     (0)
#define PRJ_BREATH_DETECTION_ID    (1)
#define PRJ_GESTURE_DETECTION_ID   (2)
#define PRJ_RANGE_DETECTION_ID     (3)
#define PRJ_PEOPLE_COUNTING_ID     (4)

/*--------------------------------- typedef ----------------------------------*/
typedef struct
{
    /* rf */
    StateTypedef rx0En;
    StateTypedef rx1En;
    StateTypedef tx0En;
    StateTypedef tx1En;
    StateTypedef phaseShftLut0En;
    StateTypedef phaseShftLut1En;
    uint32 PaGain0;
    uint32 PaGain1;

    /* if */
    StateTypedef tiaHpfEn;
    StateTypedef rcHpfEn;
    StateTypedef pgaHpfEn;
    uint32 tiaGain0;
    uint32 tiaGain1;
    uint32 pgaGain0;
    uint32 pgaGain1;
    uint32 tiaHpf;
    uint32 rcHpf;
    uint32 pgaHpf;
    uint32 pgaLpf;
} AnalogDataStrTypedef;



/*------------------------------ variable ------------------------------------*/


#endif
